from django.db import models

# Create your models here.
# 交易详情
class Ssq(models.Model):
    # 主键
    id = models.AutoField(primary_key=True)
    # 期号

    code = models.CharField(max_length=20)
    #彩票类型
    ctype = models.CharField(max_length=20)
    # 红球1
    red1 = models.IntegerField()

    # 红球2
    red2 = models.IntegerField()
    # 红球3
    red3 = models.IntegerField()
    # 红球4
    red4 = models.IntegerField()
    # 红球5
    red5 = models.IntegerField()
    # 红球6
    red6 = models.IntegerField()
    # 蓝球
    blue = models.IntegerField()
    #开奖日期
    starDate = models.CharField(max_length=20)
